package com.project.music.bean;

import io.swagger.annotations.ApiParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class Comment implements Serializable {
    //主键
    @ApiParam("评论ID")
    private int id;
    //用户id
    @ApiParam("用户ID")
    private Integer userId;
    //歌曲id
    @ApiParam("歌曲ID")
    private Integer songId;
    //歌单id
    @ApiParam("歌单ID")
    private Integer songListId;
    //内容
    @ApiParam("评论内容")
    private String content;
    //创建时间
    @ApiParam("创建时间")
    private Date createTime;
    //种类(歌曲或歌单)
    @ApiParam("评论种类(歌曲或歌单)")
    private byte type;
    //点赞数
    @ApiParam("点赞数")
    private int up;
}
